/**
 * Created by Administrator on 2018/4/11.
 */
export function getYaxisMaxMin(dataArray1) {
  console.log(dataArray1)
  let dataArray = []
  dataArray1.forEach((item) => {
    if (item && item != ''){
      dataArray.push(item)
    }
  })
  console.log(dataArray)
  let maxNum = Math.max(...dataArray)
  let minNum = Math.min(...dataArray)
  console.log('max=' + maxNum + '  min=' + minNum)
  let miu4 = Math.abs(maxNum - minNum) / 8
  console.log('miu4=' + miu4)
  let Ymax = (maxNum + miu4).toFixed(1)
  let Ymin = (minNum - miu4).toFixed(1)
  return {Ymax, Ymin}
}
